<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Voya Media: MediaInfoLib.cs Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>


</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Voya Media
   &#160;<span id="projectnumber">1.2.255.1212</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.8.0 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('a00019.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">MediaInfoLib.cs</div>  </div>
</div><!--header-->
<div class="contents">
<a href="a00019.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">// MediaInfoDLL - All info about media files, for DLL</span>
<a name="l00002"></a>00002 <span class="comment">// Copyright (C) 2002-2009 Jerome Martinez, Zen@MediaArea.net</span>
<a name="l00003"></a>00003 <span class="comment">//</span>
<a name="l00004"></a>00004 <span class="comment">// This library is free software; you can redistribute it and/or</span>
<a name="l00005"></a>00005 <span class="comment">// modify it under the terms of the GNU Lesser General Public</span>
<a name="l00006"></a>00006 <span class="comment">// License as published by the Free Software Foundation; either</span>
<a name="l00007"></a>00007 <span class="comment">// version 2.1 of the License, or (at your option) any later version.</span>
<a name="l00008"></a>00008 <span class="comment">//</span>
<a name="l00009"></a>00009 <span class="comment">// This library is distributed in the hope that it will be useful,</span>
<a name="l00010"></a>00010 <span class="comment">// but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00011"></a>00011 <span class="comment">// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU</span>
<a name="l00012"></a>00012 <span class="comment">// Lesser General Public License for more details.</span>
<a name="l00013"></a>00013 <span class="comment">//</span>
<a name="l00014"></a>00014 <span class="comment">// MediaInfoDLL - All info about media files, for DLL</span>
<a name="l00015"></a>00015 <span class="comment">// Copyright (C) 2002-2009 Jerome Martinez, Zen@MediaArea.net</span>
<a name="l00016"></a>00016 <span class="comment">//</span>
<a name="l00017"></a>00017 <span class="comment">// This library is free software; you can redistribute it and/or</span>
<a name="l00018"></a>00018 <span class="comment">// modify it under the terms of the GNU Lesser General Public</span>
<a name="l00019"></a>00019 <span class="comment">// License as published by the Free Software Foundation; either</span>
<a name="l00020"></a>00020 <span class="comment">// version 2.1 of the License, or (at your option) any later version.</span>
<a name="l00021"></a>00021 <span class="comment">//</span>
<a name="l00022"></a>00022 <span class="comment">// This library is distributed in the hope that it will be useful,</span>
<a name="l00023"></a>00023 <span class="comment">// but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00024"></a>00024 <span class="comment">// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU</span>
<a name="l00025"></a>00025 <span class="comment">// Lesser General Public License for more details.</span>
<a name="l00026"></a>00026 <span class="comment">//</span>
<a name="l00027"></a>00027 <span class="comment">// You should have received a copy of the GNU Lesser General Public</span>
<a name="l00028"></a>00028 <span class="comment">// License along with this library; if not, write to the Free Software</span>
<a name="l00029"></a>00029 <span class="comment">// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA</span>
<a name="l00030"></a>00030 <span class="comment">//</span>
<a name="l00031"></a>00031 <span class="comment">//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++</span>
<a name="l00032"></a>00032 <span class="comment">//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++</span>
<a name="l00033"></a>00033 <span class="comment">//</span>
<a name="l00034"></a>00034 <span class="comment">// Microsoft Visual C# wrapper for MediaInfo Library</span>
<a name="l00035"></a>00035 <span class="comment">// See MediaInfo.h for help</span>
<a name="l00036"></a>00036 <span class="comment">//</span>
<a name="l00037"></a>00037 <span class="comment">// To make it working, you must put MediaInfo.Dll</span>
<a name="l00038"></a>00038 <span class="comment">// in the executable folder</span>
<a name="l00039"></a>00039 <span class="comment">//</span>
<a name="l00040"></a>00040 <span class="comment">//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++</span>
<a name="l00041"></a>00041 
<a name="l00042"></a>00042 <span class="keyword">using</span> System;
<a name="l00043"></a>00043 <span class="keyword">using</span> System.ComponentModel;
<a name="l00044"></a>00044 <span class="keyword">using</span> System.Diagnostics;
<a name="l00045"></a>00045 <span class="keyword">using</span> System.IO;
<a name="l00046"></a>00046 <span class="keyword">using</span> System.Reflection;
<a name="l00047"></a>00047 <span class="keyword">using</span> System.Resources;
<a name="l00048"></a>00048 <span class="keyword">using</span> System.Runtime.InteropServices;
<a name="l00049"></a>00049 <span class="keyword">using</span> System.Text;
<a name="l00050"></a>00050 
<a name="l00051"></a>00051 <span class="preprocessor">#pragma warning disable 1591 // Disable XML documentation warnings</span>
<a name="l00052"></a>00052 <span class="preprocessor"></span>
<a name="l00053"></a><a class="code" href="a00027.html">00053</a> <span class="keyword">namespace </span>MediaInfoLib
<a name="l00054"></a>00054 {
<a name="l00055"></a><a class="code" href="a00027.html#aa22006806c4c7885734f493676ac9bb3">00055</a>     <span class="keyword">public</span> <span class="keyword">enum</span> <a class="code" href="a00027.html#aa22006806c4c7885734f493676ac9bb3">StreamKind</a>
<a name="l00056"></a>00056     {
<a name="l00057"></a>00057         General,
<a name="l00058"></a>00058         Video,
<a name="l00059"></a>00059         Audio,
<a name="l00060"></a>00060         Text,
<a name="l00061"></a>00061         Chapters,
<a name="l00062"></a>00062         Image,
<a name="l00063"></a>00063         Menu,
<a name="l00064"></a>00064     }
<a name="l00065"></a>00065 
<a name="l00066"></a><a class="code" href="a00027.html#aa903a814d7d6bb3311e4bd6533b6aaf8">00066</a>     <span class="keyword">public</span> <span class="keyword">enum</span> <a class="code" href="a00027.html#aa903a814d7d6bb3311e4bd6533b6aaf8">InfoKind</a>
<a name="l00067"></a>00067     {
<a name="l00068"></a>00068         Name,
<a name="l00069"></a>00069         Text,
<a name="l00070"></a>00070         Measure,
<a name="l00071"></a>00071         Options,
<a name="l00072"></a>00072         NameText,
<a name="l00073"></a>00073         MeasureText,
<a name="l00074"></a>00074         Info,
<a name="l00075"></a>00075         HowTo
<a name="l00076"></a>00076     }
<a name="l00077"></a>00077 
<a name="l00078"></a><a class="code" href="a00027.html#a0eab9d53f1b3e80c2668028fc2e0b592">00078</a>     <span class="keyword">public</span> <span class="keyword">enum</span> <a class="code" href="a00027.html#a0eab9d53f1b3e80c2668028fc2e0b592">InfoOptions</a>
<a name="l00079"></a>00079     {
<a name="l00080"></a>00080         ShowInInform,
<a name="l00081"></a>00081         Support,
<a name="l00082"></a>00082         ShowInSupported,
<a name="l00083"></a>00083         TypeOfValue
<a name="l00084"></a>00084     }
<a name="l00085"></a>00085 
<a name="l00086"></a><a class="code" href="a00027.html#a07fbffc7189357a86db8320d5ecd88bf">00086</a>     <span class="keyword">public</span> <span class="keyword">enum</span> <a class="code" href="a00027.html#a07fbffc7189357a86db8320d5ecd88bf">InfoFileOptions</a>
<a name="l00087"></a>00087     {
<a name="l00088"></a>00088         FileOption_Nothing      = 0x00,
<a name="l00089"></a>00089         FileOption_NoRecursive  = 0x01,
<a name="l00090"></a>00090         FileOption_CloseAll     = 0x02,
<a name="l00091"></a>00091         FileOption_Max          = 0x04
<a name="l00092"></a>00092     };
<a name="l00093"></a>00093 
<a name="l00094"></a>00094 
<a name="l00095"></a><a class="code" href="a00006.html">00095</a>     <span class="keyword">public</span> <span class="keyword">class </span><a class="code" href="a00006.html">MediaInfoDll</a>
<a name="l00096"></a>00096     {
<a name="l00097"></a>00097         <span class="comment">//Import of DLL functions. DO NOT USE until you know what you do (MediaInfo DLL do NOT use CoTaskMemAlloc to allocate memory)</span>
<a name="l00098"></a>00098         [DllImport(<span class="stringliteral">&quot;MediaInfo.dll&quot;</span>)]
<a name="l00099"></a>00099         <span class="keyword">private</span> <span class="keyword">static</span> <span class="keyword">extern</span> IntPtr MediaInfo_New();
<a name="l00100"></a>00100         [DllImport(<span class="stringliteral">&quot;MediaInfo.dll&quot;</span>)]
<a name="l00101"></a>00101         <span class="keyword">private</span> <span class="keyword">static</span> <span class="keyword">extern</span> <span class="keywordtype">void</span>   MediaInfo_Delete(IntPtr Handle);
<a name="l00102"></a>00102         [DllImport(<span class="stringliteral">&quot;MediaInfo.dll&quot;</span>)]
<a name="l00103"></a>00103         <span class="keyword">private</span> <span class="keyword">static</span> <span class="keyword">extern</span> IntPtr MediaInfo_Open(IntPtr Handle, [MarshalAs(UnmanagedType.LPWStr)] <span class="keywordtype">string</span> FileName);
<a name="l00104"></a>00104         [DllImport(<span class="stringliteral">&quot;MediaInfo.dll&quot;</span>)]
<a name="l00105"></a>00105         <span class="keyword">private</span> <span class="keyword">static</span> <span class="keyword">extern</span> IntPtr MediaInfoA_Open(IntPtr Handle, IntPtr FileName);
<a name="l00106"></a>00106         [DllImport(<span class="stringliteral">&quot;MediaInfo.dll&quot;</span>)]
<a name="l00107"></a>00107         <span class="keyword">private</span> <span class="keyword">static</span> <span class="keyword">extern</span> IntPtr MediaInfo_Open_Buffer_Init(IntPtr Handle, Int64 File_Size, Int64 File_Offset);
<a name="l00108"></a>00108         [DllImport(<span class="stringliteral">&quot;MediaInfo.dll&quot;</span>)]
<a name="l00109"></a>00109         <span class="keyword">private</span> <span class="keyword">static</span> <span class="keyword">extern</span> IntPtr MediaInfoA_Open(IntPtr Handle, Int64 File_Size, Int64 File_Offset);
<a name="l00110"></a>00110         [DllImport(<span class="stringliteral">&quot;MediaInfo.dll&quot;</span>)]
<a name="l00111"></a>00111         <span class="keyword">private</span> <span class="keyword">static</span> <span class="keyword">extern</span> IntPtr MediaInfo_Open_Buffer_Continue(IntPtr Handle, IntPtr Buffer, IntPtr Buffer_Size);
<a name="l00112"></a>00112         [DllImport(<span class="stringliteral">&quot;MediaInfo.dll&quot;</span>)]
<a name="l00113"></a>00113         <span class="keyword">private</span> <span class="keyword">static</span> <span class="keyword">extern</span> IntPtr MediaInfoA_Open_Buffer_Continue(IntPtr Handle, Int64 File_Size, byte[] Buffer, IntPtr Buffer_Size);
<a name="l00114"></a>00114         [DllImport(<span class="stringliteral">&quot;MediaInfo.dll&quot;</span>)]
<a name="l00115"></a>00115         <span class="keyword">private</span> <span class="keyword">static</span> <span class="keyword">extern</span> Int64  MediaInfo_Open_Buffer_Continue_GoTo_Get(IntPtr Handle);
<a name="l00116"></a>00116         [DllImport(<span class="stringliteral">&quot;MediaInfo.dll&quot;</span>)]
<a name="l00117"></a>00117         <span class="keyword">private</span> <span class="keyword">static</span> <span class="keyword">extern</span> Int64  MediaInfoA_Open_Buffer_Continue_GoTo_Get(IntPtr Handle);
<a name="l00118"></a>00118         [DllImport(<span class="stringliteral">&quot;MediaInfo.dll&quot;</span>)]
<a name="l00119"></a>00119         <span class="keyword">private</span> <span class="keyword">static</span> <span class="keyword">extern</span> IntPtr MediaInfo_Open_Buffer_Finalize(IntPtr Handle);
<a name="l00120"></a>00120         [DllImport(<span class="stringliteral">&quot;MediaInfo.dll&quot;</span>)]
<a name="l00121"></a>00121         <span class="keyword">private</span> <span class="keyword">static</span> <span class="keyword">extern</span> IntPtr MediaInfoA_Open_Buffer_Finalize(IntPtr Handle);
<a name="l00122"></a>00122         [DllImport(<span class="stringliteral">&quot;MediaInfo.dll&quot;</span>)]
<a name="l00123"></a>00123         <span class="keyword">private</span> <span class="keyword">static</span> <span class="keyword">extern</span> <span class="keywordtype">void</span>   MediaInfo_Close(IntPtr Handle);
<a name="l00124"></a>00124         [DllImport(<span class="stringliteral">&quot;MediaInfo.dll&quot;</span>)]
<a name="l00125"></a>00125         <span class="keyword">private</span> <span class="keyword">static</span> <span class="keyword">extern</span> IntPtr MediaInfo_Inform(IntPtr Handle, IntPtr Reserved);
<a name="l00126"></a>00126         [DllImport(<span class="stringliteral">&quot;MediaInfo.dll&quot;</span>)]
<a name="l00127"></a>00127         <span class="keyword">private</span> <span class="keyword">static</span> <span class="keyword">extern</span> IntPtr MediaInfoA_Inform(IntPtr Handle, IntPtr Reserved);
<a name="l00128"></a>00128         [DllImport(<span class="stringliteral">&quot;MediaInfo.dll&quot;</span>)]
<a name="l00129"></a>00129         <span class="keyword">private</span> <span class="keyword">static</span> <span class="keyword">extern</span> IntPtr MediaInfo_GetI(IntPtr Handle, IntPtr <a class="code" href="a00027.html#aa22006806c4c7885734f493676ac9bb3">StreamKind</a>, IntPtr StreamNumber, IntPtr Parameter, IntPtr KindOfInfo);
<a name="l00130"></a>00130         [DllImport(<span class="stringliteral">&quot;MediaInfo.dll&quot;</span>)]
<a name="l00131"></a>00131         <span class="keyword">private</span> <span class="keyword">static</span> <span class="keyword">extern</span> IntPtr MediaInfoA_GetI(IntPtr Handle, IntPtr StreamKind, IntPtr StreamNumber, IntPtr Parameter, IntPtr KindOfInfo);
<a name="l00132"></a>00132         [DllImport(<span class="stringliteral">&quot;MediaInfo.dll&quot;</span>)]
<a name="l00133"></a>00133         <span class="keyword">private</span> <span class="keyword">static</span> <span class="keyword">extern</span> IntPtr MediaInfo_Get(IntPtr Handle, IntPtr StreamKind, IntPtr StreamNumber, [MarshalAs(UnmanagedType.LPWStr)] <span class="keywordtype">string</span> Parameter, IntPtr KindOfInfo, IntPtr KindOfSearch);
<a name="l00134"></a>00134         [DllImport(<span class="stringliteral">&quot;MediaInfo.dll&quot;</span>)]
<a name="l00135"></a>00135         <span class="keyword">private</span> <span class="keyword">static</span> <span class="keyword">extern</span> IntPtr MediaInfoA_Get(IntPtr Handle, IntPtr StreamKind, IntPtr StreamNumber, IntPtr Parameter, IntPtr KindOfInfo, IntPtr KindOfSearch);
<a name="l00136"></a>00136         [DllImport(<span class="stringliteral">&quot;MediaInfo.dll&quot;</span>)]
<a name="l00137"></a>00137         <span class="keyword">private</span> <span class="keyword">static</span> <span class="keyword">extern</span> IntPtr MediaInfo_Option(IntPtr Handle, [MarshalAs(UnmanagedType.LPWStr)] <span class="keywordtype">string</span> <a class="code" href="a00006.html#a0d5e018da9a0da2e33efbd0cfca17937">Option</a>, [MarshalAs(UnmanagedType.LPWStr)] <span class="keywordtype">string</span> Value);
<a name="l00138"></a>00138         [DllImport(<span class="stringliteral">&quot;MediaInfo.dll&quot;</span>)]
<a name="l00139"></a>00139         <span class="keyword">private</span> <span class="keyword">static</span> <span class="keyword">extern</span> IntPtr MediaInfoA_Option(IntPtr Handle, IntPtr Option,  IntPtr Value);
<a name="l00140"></a>00140         [DllImport(<span class="stringliteral">&quot;MediaInfo.dll&quot;</span>)]
<a name="l00141"></a>00141         <span class="keyword">private</span> <span class="keyword">static</span> <span class="keyword">extern</span> IntPtr MediaInfo_State_Get(IntPtr Handle);
<a name="l00142"></a>00142         [DllImport(<span class="stringliteral">&quot;MediaInfo.dll&quot;</span>)]
<a name="l00143"></a>00143         <span class="keyword">private</span> <span class="keyword">static</span> <span class="keyword">extern</span> IntPtr MediaInfo_Count_Get(IntPtr Handle, IntPtr StreamKind, IntPtr StreamNumber);
<a name="l00144"></a>00144 
<a name="l00145"></a>00145         <span class="comment">//MediaInfo class</span>
<a name="l00146"></a><a class="code" href="a00006.html#aeec1aa16e9900f97940b81c9f5403db5">00146</a>         <span class="keyword">public</span> <a class="code" href="a00006.html#aeec1aa16e9900f97940b81c9f5403db5">MediaInfoDll</a>()
<a name="l00147"></a>00147         {
<a name="l00148"></a>00148             Handle = MediaInfo_New();
<a name="l00149"></a>00149             <span class="keywordflow">if</span> (Environment.OSVersion.ToString().IndexOf(<span class="stringliteral">&quot;Windows&quot;</span>)==-1)
<a name="l00150"></a>00150                 MustUseAnsi=<span class="keyword">true</span>;
<a name="l00151"></a>00151             <span class="keywordflow">else</span>
<a name="l00152"></a>00152                 MustUseAnsi=<span class="keyword">false</span>;
<a name="l00153"></a>00153         }
<a name="l00154"></a>00154         ~<a class="code" href="a00006.html">MediaInfoDll</a>() { MediaInfo_Delete(Handle); }
<a name="l00155"></a><a class="code" href="a00006.html#a0851fab095d95175e6588108bd6332f6">00155</a>         <span class="keyword">public</span> <span class="keywordtype">int</span> <a class="code" href="a00006.html#a0851fab095d95175e6588108bd6332f6">Open</a>(String FileName)
<a name="l00156"></a>00156         {
<a name="l00157"></a>00157             <span class="keywordflow">if</span> (MustUseAnsi)
<a name="l00158"></a>00158             {
<a name="l00159"></a>00159                 IntPtr FileName_Ptr = Marshal.StringToHGlobalAnsi(FileName);
<a name="l00160"></a>00160                 <span class="keywordtype">int</span> ToReturn = (int)MediaInfoA_Open(Handle, FileName_Ptr);
<a name="l00161"></a>00161                 Marshal.FreeHGlobal(FileName_Ptr);
<a name="l00162"></a>00162                 <span class="keywordflow">return</span> ToReturn;
<a name="l00163"></a>00163             }
<a name="l00164"></a>00164             <span class="keywordflow">else</span>
<a name="l00165"></a>00165                 <span class="keywordflow">return</span> (<span class="keywordtype">int</span>)MediaInfo_Open(Handle, FileName);
<a name="l00166"></a>00166         }
<a name="l00167"></a><a class="code" href="a00006.html#a92b744a58980efcbd3d5981de9eddb39">00167</a>         <span class="keyword">public</span> <span class="keywordtype">int</span> <a class="code" href="a00006.html#a92b744a58980efcbd3d5981de9eddb39">Open_Buffer_Init</a>(Int64 File_Size, Int64 File_Offset)
<a name="l00168"></a>00168         {
<a name="l00169"></a>00169             <span class="keywordflow">return</span> (<span class="keywordtype">int</span>)MediaInfo_Open_Buffer_Init(Handle, File_Size, File_Offset);
<a name="l00170"></a>00170         }
<a name="l00171"></a><a class="code" href="a00006.html#a3ec0c3355a3b4c8e062e50bb4f0a217a">00171</a>         <span class="keyword">public</span> <span class="keywordtype">int</span> <a class="code" href="a00006.html#a3ec0c3355a3b4c8e062e50bb4f0a217a">Open_Buffer_Continue</a>(IntPtr Buffer, IntPtr Buffer_Size)
<a name="l00172"></a>00172         {
<a name="l00173"></a>00173             <span class="keywordflow">return</span> (<span class="keywordtype">int</span>)MediaInfo_Open_Buffer_Continue(Handle, Buffer, Buffer_Size);
<a name="l00174"></a>00174         }
<a name="l00175"></a><a class="code" href="a00006.html#aaa6194c442741e6f7940c997a49e79a0">00175</a>         <span class="keyword">public</span> Int64 <a class="code" href="a00006.html#aaa6194c442741e6f7940c997a49e79a0">Open_Buffer_Continue_GoTo_Get</a>()
<a name="l00176"></a>00176         {
<a name="l00177"></a>00177             <span class="keywordflow">return</span> MediaInfo_Open_Buffer_Continue_GoTo_Get(Handle);
<a name="l00178"></a>00178         }
<a name="l00179"></a><a class="code" href="a00006.html#a773b871a3775f1f965f03d4097d24456">00179</a>         <span class="keyword">public</span> <span class="keywordtype">int</span> <a class="code" href="a00006.html#a773b871a3775f1f965f03d4097d24456">Open_Buffer_Finalize</a>()
<a name="l00180"></a>00180         {
<a name="l00181"></a>00181             <span class="keywordflow">return</span> (<span class="keywordtype">int</span>)MediaInfo_Open_Buffer_Finalize(Handle);
<a name="l00182"></a>00182         }
<a name="l00183"></a><a class="code" href="a00006.html#a7f7a3199c392465d0767c6506c1af5b4">00183</a>         <span class="keyword">public</span> <span class="keywordtype">void</span> <a class="code" href="a00006.html#a7f7a3199c392465d0767c6506c1af5b4">Close</a>() { MediaInfo_Close(Handle); }
<a name="l00184"></a><a class="code" href="a00006.html#a26e65a83af63e7402e53e30f9d9e168b">00184</a>         <span class="keyword">public</span> String <a class="code" href="a00006.html#a26e65a83af63e7402e53e30f9d9e168b">Inform</a>()
<a name="l00185"></a>00185         {
<a name="l00186"></a>00186             <span class="keywordflow">if</span> (MustUseAnsi)
<a name="l00187"></a>00187                 <span class="keywordflow">return</span> Marshal.PtrToStringAnsi(MediaInfoA_Inform(Handle, (IntPtr)0));
<a name="l00188"></a>00188             <span class="keywordflow">else</span>
<a name="l00189"></a>00189                 <span class="keywordflow">return</span> Marshal.PtrToStringUni(MediaInfo_Inform(Handle, (IntPtr)0));
<a name="l00190"></a>00190         }
<a name="l00191"></a><a class="code" href="a00006.html#acba6b4d62d1027ca6be9b98c36fd2948">00191</a>         <span class="keyword">public</span> String <a class="code" href="a00006.html#acba6b4d62d1027ca6be9b98c36fd2948">Get</a>(StreamKind StreamKind, <span class="keywordtype">int</span> StreamNumber, String Parameter, <a class="code" href="a00027.html#aa903a814d7d6bb3311e4bd6533b6aaf8">InfoKind</a> KindOfInfo, <a class="code" href="a00027.html#aa903a814d7d6bb3311e4bd6533b6aaf8">InfoKind</a> KindOfSearch)
<a name="l00192"></a>00192         {
<a name="l00193"></a>00193             <span class="keywordflow">if</span> (MustUseAnsi)
<a name="l00194"></a>00194             {
<a name="l00195"></a>00195                 IntPtr Parameter_Ptr=Marshal.StringToHGlobalAnsi(Parameter);
<a name="l00196"></a>00196                 String ToReturn=Marshal.PtrToStringAnsi(MediaInfoA_Get(Handle, (IntPtr)StreamKind, (IntPtr)StreamNumber, Parameter_Ptr, (IntPtr)KindOfInfo, (IntPtr)KindOfSearch));
<a name="l00197"></a>00197                 Marshal.FreeHGlobal(Parameter_Ptr);
<a name="l00198"></a>00198                 <span class="keywordflow">return</span> ToReturn;
<a name="l00199"></a>00199             }
<a name="l00200"></a>00200             <span class="keywordflow">else</span>
<a name="l00201"></a>00201                 <span class="keywordflow">return</span> Marshal.PtrToStringUni(MediaInfo_Get(Handle, (IntPtr)StreamKind, (IntPtr)StreamNumber, Parameter, (IntPtr)KindOfInfo, (IntPtr)KindOfSearch));
<a name="l00202"></a>00202         }
<a name="l00203"></a><a class="code" href="a00006.html#ae84c3dd8f8038b5bdb284ee9209a1fdc">00203</a>         <span class="keyword">public</span> String <a class="code" href="a00006.html#acba6b4d62d1027ca6be9b98c36fd2948">Get</a>(StreamKind StreamKind, <span class="keywordtype">int</span> StreamNumber, <span class="keywordtype">int</span> Parameter, <a class="code" href="a00027.html#aa903a814d7d6bb3311e4bd6533b6aaf8">InfoKind</a> KindOfInfo)
<a name="l00204"></a>00204         {
<a name="l00205"></a>00205             <span class="keywordflow">if</span> (MustUseAnsi)
<a name="l00206"></a>00206                 <span class="keywordflow">return</span> Marshal.PtrToStringAnsi(MediaInfoA_GetI(Handle, (IntPtr)StreamKind, (IntPtr)StreamNumber, (IntPtr)Parameter, (IntPtr)KindOfInfo));
<a name="l00207"></a>00207             <span class="keywordflow">else</span>
<a name="l00208"></a>00208                 <span class="keywordflow">return</span> Marshal.PtrToStringUni(MediaInfo_GetI(Handle, (IntPtr)StreamKind, (IntPtr)StreamNumber, (IntPtr)Parameter, (IntPtr)KindOfInfo));
<a name="l00209"></a>00209         }
<a name="l00210"></a><a class="code" href="a00006.html#a0d5e018da9a0da2e33efbd0cfca17937">00210</a>         <span class="keyword">public</span> String <a class="code" href="a00006.html#a0d5e018da9a0da2e33efbd0cfca17937">Option</a>(String Option, String Value)
<a name="l00211"></a>00211         {
<a name="l00212"></a>00212             <span class="keywordflow">if</span> (MustUseAnsi)
<a name="l00213"></a>00213             {
<a name="l00214"></a>00214                 IntPtr Option_Ptr=Marshal.StringToHGlobalAnsi(Option);
<a name="l00215"></a>00215                 IntPtr Value_Ptr=Marshal.StringToHGlobalAnsi(Value);
<a name="l00216"></a>00216                 String ToReturn=Marshal.PtrToStringAnsi(MediaInfoA_Option(Handle, Option_Ptr, Value_Ptr));
<a name="l00217"></a>00217                 Marshal.FreeHGlobal(Option_Ptr);
<a name="l00218"></a>00218                 Marshal.FreeHGlobal(Value_Ptr);
<a name="l00219"></a>00219                 <span class="keywordflow">return</span> ToReturn;
<a name="l00220"></a>00220             }
<a name="l00221"></a>00221             <span class="keywordflow">else</span>
<a name="l00222"></a>00222                 <span class="keywordflow">return</span> Marshal.PtrToStringUni(MediaInfo_Option(Handle, Option, Value));
<a name="l00223"></a>00223         }
<a name="l00224"></a><a class="code" href="a00006.html#a31746b3f985b9c58bd7a866a11048db4">00224</a>         <span class="keyword">public</span> <span class="keywordtype">int</span> <a class="code" href="a00006.html#a31746b3f985b9c58bd7a866a11048db4">State_Get</a>() { <span class="keywordflow">return</span> (<span class="keywordtype">int</span>)MediaInfo_State_Get(Handle); }
<a name="l00225"></a><a class="code" href="a00006.html#ad24280e75d206f548ae367c4968f2fff">00225</a>         <span class="keyword">public</span> <span class="keywordtype">int</span> <a class="code" href="a00006.html#ad24280e75d206f548ae367c4968f2fff">Count_Get</a>(StreamKind StreamKind, <span class="keywordtype">int</span> StreamNumber) { <span class="keywordflow">return</span> (<span class="keywordtype">int</span>)MediaInfo_Count_Get(Handle, (IntPtr)StreamKind, (IntPtr)StreamNumber); }
<a name="l00226"></a>00226         <span class="keyword">private</span> IntPtr Handle;
<a name="l00227"></a>00227         <span class="keyword">private</span> <span class="keywordtype">bool</span> MustUseAnsi;
<a name="l00228"></a>00228 
<a name="l00229"></a>00229         <span class="comment">//Default values, if you know how to set default values in C#, say me</span>
<a name="l00230"></a><a class="code" href="a00006.html#a05a3a2e84d5c924dae3e62cfc7b3673f">00230</a>         <span class="keyword">public</span> String <a class="code" href="a00006.html#a05a3a2e84d5c924dae3e62cfc7b3673f">Get</a>(StreamKind StreamKind, <span class="keywordtype">int</span> StreamNumber, String Parameter, <a class="code" href="a00027.html#aa903a814d7d6bb3311e4bd6533b6aaf8">InfoKind</a> KindOfInfo) { <span class="keywordflow">return</span> <a class="code" href="a00006.html#a05a3a2e84d5c924dae3e62cfc7b3673f">Get</a>(StreamKind, StreamNumber, Parameter, KindOfInfo, <a class="code" href="a00027.html#aa903a814d7d6bb3311e4bd6533b6aaf8">InfoKind</a>.Name); }
<a name="l00231"></a><a class="code" href="a00006.html#ae980f1a7d245fa5bbb12cb290eda7756">00231</a>         <span class="keyword">public</span> String <a class="code" href="a00006.html#ae980f1a7d245fa5bbb12cb290eda7756">Get</a>(StreamKind StreamKind, <span class="keywordtype">int</span> StreamNumber, String Parameter) { <span class="keywordflow">return</span> <a class="code" href="a00006.html#ae980f1a7d245fa5bbb12cb290eda7756">Get</a>(StreamKind, StreamNumber, Parameter, <a class="code" href="a00027.html#aa903a814d7d6bb3311e4bd6533b6aaf8">InfoKind</a>.Text, <a class="code" href="a00027.html#aa903a814d7d6bb3311e4bd6533b6aaf8">InfoKind</a>.Name); }
<a name="l00232"></a><a class="code" href="a00006.html#abd792ad8f4f29ad2142780b269325eb8">00232</a>         <span class="keyword">public</span> String <a class="code" href="a00006.html#abd792ad8f4f29ad2142780b269325eb8">Get</a>(StreamKind StreamKind, <span class="keywordtype">int</span> StreamNumber, <span class="keywordtype">int</span> Parameter) { <span class="keywordflow">return</span> <a class="code" href="a00006.html#abd792ad8f4f29ad2142780b269325eb8">Get</a>(StreamKind, StreamNumber, Parameter, <a class="code" href="a00027.html#aa903a814d7d6bb3311e4bd6533b6aaf8">InfoKind</a>.Text); }
<a name="l00233"></a><a class="code" href="a00006.html#af4bf625de3868392bcb93e2d06cb15bf">00233</a>         <span class="keyword">public</span> String <a class="code" href="a00006.html#af4bf625de3868392bcb93e2d06cb15bf">Option</a>(String Option_) { <span class="keywordflow">return</span> <a class="code" href="a00006.html#af4bf625de3868392bcb93e2d06cb15bf">Option</a>(Option_, <span class="stringliteral">&quot;&quot;</span>); }
<a name="l00234"></a><a class="code" href="a00006.html#afecc3dd8a30eef6058cfaaa955a07f01">00234</a>         <span class="keyword">public</span> <span class="keywordtype">int</span> <a class="code" href="a00006.html#afecc3dd8a30eef6058cfaaa955a07f01">Count_Get</a>(StreamKind StreamKind) { <span class="keywordflow">return</span> <a class="code" href="a00006.html#afecc3dd8a30eef6058cfaaa955a07f01">Count_Get</a>(StreamKind, -1); }
<a name="l00235"></a>00235     }
<a name="l00236"></a>00236 
<a name="l00237"></a><a class="code" href="a00007.html">00237</a>     <span class="keyword">public</span> <span class="keyword">class </span><a class="code" href="a00007.html">MediaInfoList</a>
<a name="l00238"></a>00238     {
<a name="l00239"></a>00239         <span class="comment">//Import of DLL functions. DO NOT USE until you know what you do (MediaInfo DLL do NOT use CoTaskMemAlloc to allocate memory)</span>
<a name="l00240"></a>00240         [DllImport(<span class="stringliteral">&quot;MediaInfo.dll&quot;</span>)]
<a name="l00241"></a>00241         <span class="keyword">private</span> <span class="keyword">static</span> <span class="keyword">extern</span> IntPtr MediaInfoList_New();
<a name="l00242"></a>00242         [DllImport(<span class="stringliteral">&quot;MediaInfo.dll&quot;</span>)]
<a name="l00243"></a>00243         <span class="keyword">private</span> <span class="keyword">static</span> <span class="keyword">extern</span> <span class="keywordtype">void</span> MediaInfoList_Delete(IntPtr Handle);
<a name="l00244"></a>00244         [DllImport(<span class="stringliteral">&quot;MediaInfo.dll&quot;</span>)]
<a name="l00245"></a>00245         <span class="keyword">private</span> <span class="keyword">static</span> <span class="keyword">extern</span> IntPtr MediaInfoList_Open(IntPtr Handle, [MarshalAs(UnmanagedType.LPWStr)] <span class="keywordtype">string</span> FileName, IntPtr Options);
<a name="l00246"></a>00246         [DllImport(<span class="stringliteral">&quot;MediaInfo.dll&quot;</span>)]
<a name="l00247"></a>00247         <span class="keyword">private</span> <span class="keyword">static</span> <span class="keyword">extern</span> <span class="keywordtype">void</span> MediaInfoList_Close(IntPtr Handle, IntPtr FilePos);
<a name="l00248"></a>00248         [DllImport(<span class="stringliteral">&quot;MediaInfo.dll&quot;</span>)]
<a name="l00249"></a>00249         <span class="keyword">private</span> <span class="keyword">static</span> <span class="keyword">extern</span> IntPtr MediaInfoList_Inform(IntPtr Handle, IntPtr FilePos, IntPtr Reserved);
<a name="l00250"></a>00250         [DllImport(<span class="stringliteral">&quot;MediaInfo.dll&quot;</span>)]
<a name="l00251"></a>00251         <span class="keyword">private</span> <span class="keyword">static</span> <span class="keyword">extern</span> IntPtr MediaInfoList_GetI(IntPtr Handle, IntPtr FilePos, IntPtr <a class="code" href="a00027.html#aa22006806c4c7885734f493676ac9bb3">StreamKind</a>, IntPtr StreamNumber, IntPtr Parameter, IntPtr KindOfInfo);
<a name="l00252"></a>00252         [DllImport(<span class="stringliteral">&quot;MediaInfo.dll&quot;</span>)]
<a name="l00253"></a>00253         <span class="keyword">private</span> <span class="keyword">static</span> <span class="keyword">extern</span> IntPtr MediaInfoList_Get(IntPtr Handle, IntPtr FilePos, IntPtr StreamKind, IntPtr StreamNumber, [MarshalAs(UnmanagedType.LPWStr)] <span class="keywordtype">string</span> Parameter, IntPtr KindOfInfo, IntPtr KindOfSearch);
<a name="l00254"></a>00254         [DllImport(<span class="stringliteral">&quot;MediaInfo.dll&quot;</span>)]
<a name="l00255"></a>00255         <span class="keyword">private</span> <span class="keyword">static</span> <span class="keyword">extern</span> IntPtr MediaInfoList_Option(IntPtr Handle, [MarshalAs(UnmanagedType.LPWStr)] <span class="keywordtype">string</span> <a class="code" href="a00007.html#a0d5e018da9a0da2e33efbd0cfca17937">Option</a>, [MarshalAs(UnmanagedType.LPWStr)] <span class="keywordtype">string</span> Value);
<a name="l00256"></a>00256         [DllImport(<span class="stringliteral">&quot;MediaInfo.dll&quot;</span>)]
<a name="l00257"></a>00257         <span class="keyword">private</span> <span class="keyword">static</span> <span class="keyword">extern</span> IntPtr MediaInfoList_State_Get(IntPtr Handle);
<a name="l00258"></a>00258         [DllImport(<span class="stringliteral">&quot;MediaInfo.dll&quot;</span>)]
<a name="l00259"></a>00259         <span class="keyword">private</span> <span class="keyword">static</span> <span class="keyword">extern</span> IntPtr MediaInfoList_Count_Get(IntPtr Handle, IntPtr FilePos, IntPtr StreamKind, IntPtr StreamNumber);
<a name="l00260"></a>00260 
<a name="l00261"></a>00261         <span class="comment">//MediaInfo class</span>
<a name="l00262"></a><a class="code" href="a00007.html#a11fe35c20806750ff5e6a692c5532d09">00262</a>         <span class="keyword">public</span> <a class="code" href="a00007.html#a11fe35c20806750ff5e6a692c5532d09">MediaInfoList</a>() { Handle = MediaInfoList_New(); }
<a name="l00263"></a>00263         ~<a class="code" href="a00007.html">MediaInfoList</a>() { MediaInfoList_Delete(Handle); }
<a name="l00264"></a><a class="code" href="a00007.html#ac5d4093d9e42d40c70815d9406c3675b">00264</a>         <span class="keyword">public</span> <span class="keywordtype">int</span> <a class="code" href="a00007.html#ac5d4093d9e42d40c70815d9406c3675b">Open</a>(String FileName, <a class="code" href="a00027.html#a07fbffc7189357a86db8320d5ecd88bf">InfoFileOptions</a> Options) { <span class="keywordflow">return</span> (<span class="keywordtype">int</span>)MediaInfoList_Open(Handle, FileName, (IntPtr)Options); }
<a name="l00265"></a><a class="code" href="a00007.html#a9c16386b7f5c636ed25079bd4140343b">00265</a>         <span class="keyword">public</span> <span class="keywordtype">void</span> <a class="code" href="a00007.html#a9c16386b7f5c636ed25079bd4140343b">Close</a>(<span class="keywordtype">int</span> FilePos) { MediaInfoList_Close(Handle, (IntPtr)FilePos); }
<a name="l00266"></a><a class="code" href="a00007.html#ada6ea31801ea71eee125d26afe253e1e">00266</a>         <span class="keyword">public</span> String <a class="code" href="a00007.html#ada6ea31801ea71eee125d26afe253e1e">Inform</a>(<span class="keywordtype">int</span> FilePos) { <span class="keywordflow">return</span> Marshal.PtrToStringUni(MediaInfoList_Inform(Handle, (IntPtr)FilePos, (IntPtr)0)); }
<a name="l00267"></a><a class="code" href="a00007.html#ab098952d5747f81d1de77cd4b8d0a523">00267</a>         <span class="keyword">public</span> String <a class="code" href="a00007.html#ab098952d5747f81d1de77cd4b8d0a523">Get</a>(<span class="keywordtype">int</span> FilePos, StreamKind StreamKind, <span class="keywordtype">int</span> StreamNumber, String Parameter, <a class="code" href="a00027.html#aa903a814d7d6bb3311e4bd6533b6aaf8">InfoKind</a> KindOfInfo, <a class="code" href="a00027.html#aa903a814d7d6bb3311e4bd6533b6aaf8">InfoKind</a> KindOfSearch) { <span class="keywordflow">return</span> Marshal.PtrToStringUni(MediaInfoList_Get(Handle, (IntPtr)FilePos, (IntPtr)StreamKind, (IntPtr)StreamNumber, Parameter, (IntPtr)KindOfInfo, (IntPtr)KindOfSearch)); }
<a name="l00268"></a><a class="code" href="a00007.html#a8fa5882b6c61e47007fcdf62e843696b">00268</a>         <span class="keyword">public</span> String <a class="code" href="a00007.html#a8fa5882b6c61e47007fcdf62e843696b">Get</a>(<span class="keywordtype">int</span> FilePos, StreamKind StreamKind, <span class="keywordtype">int</span> StreamNumber, <span class="keywordtype">int</span> Parameter, <a class="code" href="a00027.html#aa903a814d7d6bb3311e4bd6533b6aaf8">InfoKind</a> KindOfInfo) { <span class="keywordflow">return</span> Marshal.PtrToStringUni(MediaInfoList_GetI(Handle, (IntPtr)FilePos, (IntPtr)StreamKind, (IntPtr)StreamNumber, (IntPtr)Parameter, (IntPtr)KindOfInfo)); }
<a name="l00269"></a><a class="code" href="a00007.html#a0d5e018da9a0da2e33efbd0cfca17937">00269</a>         <span class="keyword">public</span> String <a class="code" href="a00007.html#a0d5e018da9a0da2e33efbd0cfca17937">Option</a>(String Option, String Value) { <span class="keywordflow">return</span> Marshal.PtrToStringUni(MediaInfoList_Option(Handle, Option, Value)); }
<a name="l00270"></a><a class="code" href="a00007.html#a31746b3f985b9c58bd7a866a11048db4">00270</a>         <span class="keyword">public</span> <span class="keywordtype">int</span> <a class="code" href="a00007.html#a31746b3f985b9c58bd7a866a11048db4">State_Get</a>() { <span class="keywordflow">return</span> (<span class="keywordtype">int</span>)MediaInfoList_State_Get(Handle); }
<a name="l00271"></a><a class="code" href="a00007.html#a0280a87b619401549aee15160978e79a">00271</a>         <span class="keyword">public</span> <span class="keywordtype">int</span> <a class="code" href="a00007.html#a0280a87b619401549aee15160978e79a">Count_Get</a>(<span class="keywordtype">int</span> FilePos, StreamKind StreamKind, <span class="keywordtype">int</span> StreamNumber) { <span class="keywordflow">return</span> (<span class="keywordtype">int</span>)MediaInfoList_Count_Get(Handle, (IntPtr)FilePos, (IntPtr)StreamKind, (IntPtr)StreamNumber); }
<a name="l00272"></a>00272         <span class="keyword">private</span> IntPtr Handle;
<a name="l00273"></a>00273 
<a name="l00274"></a>00274         <span class="comment">//Default values, if you know how to set default values in C#, say me</span>
<a name="l00275"></a><a class="code" href="a00007.html#a0b2b58977e4c63303af78925b81d5866">00275</a>         <span class="keyword">public</span> <span class="keywordtype">void</span> <a class="code" href="a00007.html#a0b2b58977e4c63303af78925b81d5866">Open</a>(String FileName) { <a class="code" href="a00007.html#a0b2b58977e4c63303af78925b81d5866">Open</a>(FileName, 0); }
<a name="l00276"></a><a class="code" href="a00007.html#a7f7a3199c392465d0767c6506c1af5b4">00276</a>         <span class="keyword">public</span> <span class="keywordtype">void</span> <a class="code" href="a00007.html#a7f7a3199c392465d0767c6506c1af5b4">Close</a>() { <a class="code" href="a00007.html#a7f7a3199c392465d0767c6506c1af5b4">Close</a>(-1); }
<a name="l00277"></a><a class="code" href="a00007.html#a04ea3fbd7dc228a01144e82e229d8c25">00277</a>         <span class="keyword">public</span> String <a class="code" href="a00007.html#a04ea3fbd7dc228a01144e82e229d8c25">Get</a>(<span class="keywordtype">int</span> FilePos, StreamKind StreamKind, <span class="keywordtype">int</span> StreamNumber, String Parameter, <a class="code" href="a00027.html#aa903a814d7d6bb3311e4bd6533b6aaf8">InfoKind</a> KindOfInfo) { <span class="keywordflow">return</span> <a class="code" href="a00007.html#a04ea3fbd7dc228a01144e82e229d8c25">Get</a>(FilePos, StreamKind, StreamNumber, Parameter, KindOfInfo, <a class="code" href="a00027.html#aa903a814d7d6bb3311e4bd6533b6aaf8">InfoKind</a>.Name); }
<a name="l00278"></a><a class="code" href="a00007.html#abd24e5507f033180fd8f061c0cf3222f">00278</a>         <span class="keyword">public</span> String <a class="code" href="a00007.html#abd24e5507f033180fd8f061c0cf3222f">Get</a>(<span class="keywordtype">int</span> FilePos, StreamKind StreamKind, <span class="keywordtype">int</span> StreamNumber, String Parameter) { <span class="keywordflow">return</span> <a class="code" href="a00007.html#abd24e5507f033180fd8f061c0cf3222f">Get</a>(FilePos, StreamKind, StreamNumber, Parameter, <a class="code" href="a00027.html#aa903a814d7d6bb3311e4bd6533b6aaf8">InfoKind</a>.Text, <a class="code" href="a00027.html#aa903a814d7d6bb3311e4bd6533b6aaf8">InfoKind</a>.Name); }
<a name="l00279"></a><a class="code" href="a00007.html#a37e050d264ea2e59d5105058fe88873f">00279</a>         <span class="keyword">public</span> String <a class="code" href="a00007.html#a37e050d264ea2e59d5105058fe88873f">Get</a>(<span class="keywordtype">int</span> FilePos, StreamKind StreamKind, <span class="keywordtype">int</span> StreamNumber, <span class="keywordtype">int</span> Parameter) { <span class="keywordflow">return</span> <a class="code" href="a00007.html#a37e050d264ea2e59d5105058fe88873f">Get</a>(FilePos, StreamKind, StreamNumber, Parameter, <a class="code" href="a00027.html#aa903a814d7d6bb3311e4bd6533b6aaf8">InfoKind</a>.Text); }
<a name="l00280"></a><a class="code" href="a00007.html#af4bf625de3868392bcb93e2d06cb15bf">00280</a>         <span class="keyword">public</span> String <a class="code" href="a00007.html#af4bf625de3868392bcb93e2d06cb15bf">Option</a>(String Option_) { <span class="keywordflow">return</span> <a class="code" href="a00007.html#af4bf625de3868392bcb93e2d06cb15bf">Option</a>(Option_, <span class="stringliteral">&quot;&quot;</span>); }
<a name="l00281"></a><a class="code" href="a00007.html#a498c88491684fd64ba987ec282ad1142">00281</a>         <span class="keyword">public</span> <span class="keywordtype">int</span> <a class="code" href="a00007.html#a498c88491684fd64ba987ec282ad1142">Count_Get</a>(<span class="keywordtype">int</span> FilePos, StreamKind StreamKind) { <span class="keywordflow">return</span> <a class="code" href="a00007.html#a498c88491684fd64ba987ec282ad1142">Count_Get</a>(FilePos, StreamKind, -1); }
<a name="l00282"></a>00282     }
<a name="l00283"></a>00283 
<a name="l00284"></a>00284 } <span class="comment">//NameSpace</span>
</pre></div></div><!-- contents -->
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="a00019.html">MediaInfoLib.cs</a>      </li>

    <li class="footer">Generated on Thu Jan 10 2013 07:05:20 for Voya Media by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.0 </li>
   </ul>
 </div>


</body>
</html>
